package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.CityArea;
import com.weixing.mall.provider.model.query.CityAreaQuery;
import com.weixing.mall.provider.model.vo.cms.CityAreaCascaderVo;
import com.weixing.mall.provider.model.vo.cms.CityAreaTreeVo;
import com.weixing.mall.provider.model.vo.cms.CityAreaVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * CMS模块-行政区划表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-18
 */
public interface CityAreaMapper extends BaseMapper<CityArea> {

    IPage<CityAreaVo> selectListOfPage(@Param("pg") Page page, @Param("qs")CityAreaQuery cityAreaQuery);

    List<CityAreaVo> selectListOfPage(@Param("qs")CityAreaQuery cityAreaQuery);

    List<CityAreaTreeVo> selectCityAreaTreeVoAll();

    List<CityAreaCascaderVo> selectCityAreaCasaderVo();

    List<CityAreaCascaderVo> selectCityAreaList();

    CityArea selectByName(String region);
}